/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app;

import control.BancoBeanRemote;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import model.Cliente;

/**
 *
 * @author fabio
 */
public class TesteDados {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        InitialContext ctx;
        try {
            ctx = new InitialContext();
            BancoBeanRemote opl =(BancoBeanRemote)ctx.lookup("BancoBean");
            Cliente cli = new Cliente("12345678900", "Fabio Maturano");
            if(opl.localizarConta("123456") == null)
                opl.criarConta(cli, "123456", 100);
        } catch (NamingException ex) {
            Logger.getLogger(TesteDados.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
